<template>
  <div class="dashboard-container">
    <!-- header -->
    <div class="header">
      <div class="left">
        <div class="banner">
          <img class="img-left" src="../../assets/images/dashboard-banner-left@2x.png" alt="">
          <img class="img-right" src="../../assets/images/dashboard-banner-right@2x.png" alt="">
          <img class="Logo" src="../../assets/images/avatar@2x.png" alt="">
          <span class="name">仓储管理员</span>
          <P class="subject-title">我不是为了输赢，我就是认真！</P>
          <P class="subject-author">—— 罗永浩</P>
          <div class="site">
            <p>北京总仓</p>
          </div>
        </div>
        <div class="backlog">backlog</div>
      </div>
      <div class="right">
        <div class="news">news</div>
      </div>
    </div>

    <!--tasks  -->
    <div class="tasks">tasks</div>

    <!-- inout-charts -->
    <div class="inout-charts">
      <div class="header">header</div>
      <div class="chart">1</div>
    </div>

    <!-- libs -->
    <div class="libs">
      <div class="left">left</div>
      <div class="right">right</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Dashboard',
  computed: {}
}
</script>

<style lang="scss" scoped>
.dashboard-container {
  padding: 20px 30px 30px;
  .backlog,
  .tasks,
  .inout-charts,
  .libs {
    margin-top: 20px;
  }
  .header {
    display: flex;
    height: 451px;
    width: 100%;
    .left {
      width: calc(100% - 261px);
      padding-right: 30px;
      .banner {
        position: relative;
        width: 100%;
        height: 148px;
        background: linear-gradient(270deg, #ffc771, #ffa634);
        box-shadow: 0 0 6px 0 rgb(188 151 69 / 12%);
        border-radius: 12px;
        img {
          height: 100%;
        }
        .Logo {
          position: absolute;
          top: 31px;
          left: 43px;
          height: 62px;
        }
        .name {
          position: absolute;
          left: 36px;
          bottom: 20px;
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #332929;
          line-height: 22px;
        }
        .subject-title {
          top: 18px;
          left: 200px;
          font-size: 18px;
          position: absolute;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #fff;
          line-height: 25px;
        }
        .subject-author {
          position: absolute;
          top: 60px;
          left: 400px;
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #fff;
          line-height: 25px;
        }
        .img-right {
          position: absolute;
          top: 0;
          right: 0;
        }
        .site {
          position: absolute;
          top: 20px;
          right: 20px;
          width: 147px;
          height: 40px;
          background: #f8f5f5;
          border-radius: 6px;
          opacity: 0.79;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: space-around;
          p {
            font-size: 14px;
            font-weight: 500;
            color: #332929;
          }
        }
      }
      .backlog {
        width: 100%;
        height: 282px;
        background: #fff;
        box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
        border-radius: 12px;
        padding: 25px;
      }
    }
    .right {
      .news {
        width: 261px;
        height: 451px;
        background: #fff;
        box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
        border-radius: 12px;
        padding: 30px;
      }
    }
  }
  .tasks {
    width: 100%;
    height: 188px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
  }
  .inout-charts {
    height: 500px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
  }
  .libs {
    display: flex;
    .left {
      width: 30%;
      height: 354px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 25px;
      margin-right: 30px;
    }
    .right {
      width: 70%;
      height: 354px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 25px;
    }
  }
}
</style>
